-- GENERATED SPELL FOR [Bonechewer Combatant] --


function spell0_23239(pUnit, Event) --@Combat Rage,Self--
pUnit:FullCastSpellOnTarget(41251,pUnit)
pUnit:RegisterEvent('Sorts_23239', 587, 1)
end

function spell1_23239(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_23239', 557, 1)
end

function Sorts_23239(pUnit, Event)
local choix_sorts_23239 = math.random(0, 1)
if choix_sorts_23239 == 0 then
pUnit:RegisterEvent('spell0_23239', 1, 1)
end
if choix_sorts_23239 == 1 then
pUnit:RegisterEvent('spell1_23239', 1, 1)
end
end

function mob23239_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23239', math.random(1500, 3000), 1)
end

function mob23239_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23239_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23239_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23239, 1, 'mob23239_Action')
RegisterUnitEvent(23239, 2, 'mob23239_Leave')
RegisterUnitEvent(23239, 3, 'mob23239_Kill')
RegisterUnitEvent(23239, 4, 'mob23239_Die')
